package cn.sdormitory.knowledgebase.service;

import cn.sdormitory.common.api.CommonPage;
import cn.sdormitory.knowledgebase.pojo.StudyQuestions;
import cn.sdormitory.knowledgebase.pojo.StudySkills;
import cn.sdormitory.knowledgebase.pojo.StudySkillsBatch;
import cn.sdormitory.knowledgebase.vo.RelatedUserVo;
import cn.sdormitory.knowledgebase.vo.SkillBatchVO;
import cn.sdormitory.knowledgebase.vo.StudySkillsVo;
import cn.sdormitory.sys.entity.SysUser;

import java.util.List;

public interface StudySkillsService {

    CommonPage<StudySkillsVo> getStudySkillsList(String title, Integer type, Integer pageNum, Integer pageSize);

    void delSkills(Integer[] ids);

    List<SkillBatchVO> getSkillsBatchList(Integer skillId);

    StudySkills getStudySkillsById(Integer id);

    void editSkills(StudySkills studySkills);

    CommonPage<StudyQuestions> getRelatedQuestionsList(Integer skillsId,Integer category, Integer pageNum, Integer pageSize);

    CommonPage<StudyQuestions> getUnRelatedQuestionsList(Integer skillsId,Integer category, Integer pageNum, Integer pageSize);

    void relatedQuestions(Integer skillId, Integer[] questionIds);

    void unRelatedQuestions(Integer skillId, Integer[] questionIds);

    List<RelatedUserVo> getRelatedUserList(Integer batchId, String userName, Integer deptId);

    List<RelatedUserVo> getUnRelatedUserList(Integer batchId, String userName, Integer deptId);

    void relatedUsers(Integer batchId, Integer[] userIds);

    void unRelatedUsers(Integer batchId, Integer[] userIds);

    StudySkillsBatch getLastBatchBySkillsId(Integer skillId);

    StudySkillsBatch getBatchById(Integer batchId);

    void editBatch(StudySkillsBatch batch);

    void delBatch(Integer id);

    void openBatch(Integer batchId, Integer skillsId);

    void closeBatch(Integer batchId);
}
